<?php
//门店
function car_store($store_id) {
	global $pe,$db;
	$store = $db->pe_select('store', array('store_id'=>$store_id), 'store_name');
	return $store['store_name'];
}
//汽车类型
function car_category($category_id) {
	global $pe,$db;
	$category = $db->pe_select('category', array('category_id'=>$category_id), 'category_name');
	return $category['category_name'];
}
//汽车品牌
function car_brand($brand_id) {
	global $pe,$db;
	$brand = $db->pe_select('brand', array('brand_id'=>$brand_id), 'brand_name');
	return $brand['brand_name'];
}
//汽车名
function car_name($car_id) {
	global $pe,$db;
	$car = $db->pe_select('car', array('car_id'=>$car_id), 'car_name');
	return $car['car_name'];
}
//车型
function car_number($number_id) {
	global $pe,$db;
	$number = $db->pe_select('number', array('number_id'=>$number_id), 'number_name');
	return $number['number_name'];
}
//标签
function tag_name($tag_id) {
	global $pe,$db;
	$tag = $db->pe_select('tag', array('tag_id'=>$tag_id), 'tag_name');
	return $tag['tag_name'];
}

?>